import { get, post, Delete,uploadFile,plDelete } from "../utils/request";
const Api = {
    adminlogin: (parms) => post("/api/admin/auth/login", parms),
    getcurraccountinfo: (parms) => get("/api/admin/auth/authinfo", parms), 
    updatepassword: (parms) => post("/api/admin/account/updatepassword", parms), 
    updateMsg: (parms) => post("/api/admin/account/update", parms), 
    authorizationcodebatchdelete: (parms) => post("/api/yyhls/authorizationcode/batchdelete", parms), 
    testData: (parms) => get("/api/cqt/dictextend/listwithoutextendbyparentid?group=ZSD&code=ZSD&parentId="+parms, ''), 

    
    typequery: (parms) => get("/api/yyhls/type/query"+parms, ''), 
    typeadd: (parms) => post("/api/yyhls/type/add", parms), 
    typedelete: (parms) => Delete("/api/yyhls/type/delete"+parms, ''), 
    typeedit: (parms) => get("/api/yyhls/type/edit"+parms, ''), 
    typeupdate: (parms) => post("/api/yyhls/type/update", parms), 
    typeupdatesorttype: (parms) => get("/api/yyhls/type/updatesorttype"+parms, ''), 
    videoqueryid: (parms) => get("/api/yyhls/video/queryid"+parms, ''), 
    typeuploadmaingraph: (parms) => post("/api/yyhls/type/uploadmaingraph", parms), 
 
    articlequery: (parms) => get("/api/yyhls/article/query"+parms, ''), 
    articleadd: (parms) => post("/api/yyhls/article/add", parms), 
    articledelete: (parms) => Delete("/api/yyhls/article/delete"+parms, ''), 
    articleedit: (parms) => get("/api/yyhls/article/edit"+parms, ''), 
    articleupdate: (parms) => post("/api/yyhls/article/update", parms),   
 

    backgroundmapequery: (parms) => get("/api/yyhls/backgroundmap/query"+parms, ''), 
    backgroundmapadd: (parms) => post("/api/yyhls/backgroundmap/add", parms), 
    backgroundmapdelete: (parms) => Delete("/api/yyhls/backgroundmap/delete"+parms, ''), 
    backgroundmapedit: (parms) => get("/api/yyhls/backgroundmap/edit"+parms, ''), 
    backgroundmapupdate: (parms) => post("/api/yyhls/backgroundmap/update", parms), 
    backgrounduploadmaingraph: (parms) => post("/api/yyhls/backgroundmap/uploadmaingraph", parms), 
    adduserprovincesandcities: (parms) => get("/api/yyhls/authorizationcode/adduserprovincesandcities", parms), 

    

    uploadpic_hand: (parms1,parms2,config) => uploadFile("/api/yyhls/video/uploadpic_hand"+parms2, parms1,config), 
    videoadd: (parms) => post("/api/yyhls/video/add", parms), 
    videoquery: (parms) => get("/api/yyhls/video/query", parms), 
 
    videoedit: (parms) => get("/api/yyhls/video/edit"+parms, ''), 
    videoupdate: (parms) => post("/api/yyhls/video/update", parms), 
    videodelete: (parms) => Delete("/api/yyhls/video/delete"+parms, ''), 
    videoshelf: (parms) => get("/api/yyhls/video/shelf"+parms, ''), 
    videowhetheruphot: (parms) => get("/api/yyhls/video/whetheruphot"+parms, ''), 
    videoupdatesort: (parms) => get("/api/yyhls/video/updatesort"+parms, ''), 
    videouploadmaingraph: (parms) => post("/api/yyhls/video/uploadmaingraph", parms), 
    videouploadaudio: (parms1,parms2,config) => uploadFile("/api/yyhls/video/uploadaudio"+parms2, parms1,config),
    videoisitpublic: (parms) => get("/api/yyhls/video/isitpublic"+parms, ''), 
    videohandlevideo: (parms) => post("/api/yyhls/video/handlevideo", parms), 
    videogetsign: (parms) => get("/api/yyhls/video/getsign"+parms, ''), 


    

    userquery: (parms) => get("/api/yyhls/user/query", parms), 
    useradd: (parms) => post("/api/yyhls/user/add", parms), 
    userdelete: (parms) => Delete("/api/yyhls/user/delete"+parms, ''), 
    useredit: (parms) => get("/api/yyhls/user/edit"+parms, ''), 
    userupdate: (parms) => post("/api/yyhls/user/update", parms), 
    usercurriculumpladd: (parms) => post("/api/yyhls/usercurriculum/pladd", parms), 
    userdeactivate: (parms) => get("/api/yyhls/user/deactivate", parms), 
    userqueryallphone: (parms) => get("/api/yyhls/user/queryallphone", parms), 
    authorizationcodeshuiyin: (parms) => post("/api/yyhls/authorizationcode/shuiyin"+parms, ''), 
 
    
    
    authorizationcodequery: (parms) => get("/api/yyhls/authorizationcode/query", parms), 
    authorizationcodeadd: (parms) => post("/api/yyhls/authorizationcode/batchadd", parms), 
    authorizationcodedelete: (parms) => Delete("/api/yyhls/authorizationcode/delete"+parms, ''), 
    authorizationcodeedit: (parms) => get("/api/yyhls/authorizationcode/edit"+parms, ''), 
    authorizationcodeupdate: (parms) => post("/api/yyhls/authorizationcode/update", parms), 
    authorizationcodeeffectuser: (parms) => get("/api/yyhls/authorizationcode/effectuser"+parms, ''), 
    authorizationcodeexport: (parms) => post("/api/yyhls/authorizationcode/export", parms), 
    authorizationcodestatistics: (parms) => get("/api/yyhls/authorizationcode/statistics", parms), 
 

    rotationchartquery: (parms) => get("/api/yyhls/rotationchart/query", parms), 
    rotationchartadd: (parms) => post("/api/yyhls/rotationchart/add", parms), 
    rotationchartdelete: (parms) => Delete("/api/yyhls/rotationchart/delete", parms), 
    rotationchartedit: (parms) => get("/api/yyhls/rotationchart/edit"+parms, ''), 
    rotationchartupdate: (parms) => post("/api/yyhls/rotationchart/update", parms),  
    rotationchartuploadpic_mypic: (parms) => post("/api/yyhls/rotationchart/uploadpic_mypic", parms),  
    rotationchartupdatesort: (parms) => get("/api/yyhls/rotationchart/updatesort",parms),  
    rotationchartdisassociate: (parms) => get("/api/yyhls/rotationchart/disassociate",parms),  
    rotationchartuploadmaingraph: (parms) => post("/api/yyhls/rotationchart/uploadmaingraph", parms),  
 
    recommendquery: (parms) => get("/api/yyhls/recommend/query", parms), 
    recommendadd: (parms) => post("/api/yyhls/recommend/add", parms), 
    recommenddelete: (parms) => Delete("/api/yyhls/recommend/delete", parms), 
    recommendedit: (parms) => get("/api/yyhls/recommend/edit"+parms, ''), 
    recommendupdate: (parms) => post("/api/yyhls/recommend/update", parms),  
    recommenduploadpic_mypic: (parms) => post("/api/yyhls/recommend/uploadpic_mypic", parms),  
    recommendupdatesort: (parms) => get("/api/yyhls/recommend/updatesort",parms),  
    recommenddisassociate: (parms) => get("/api/yyhls/recommend/disassociate",parms),  
    recommenduploadmaingraph: (parms) => post("/api/yyhls/recommend/uploadmaingraph", parms),   

    indextest: (parms) => post("/index", parms),   

}
export default Api